package com.phone.rest.modular.example;

import com.baomidou.mybatisplus.plugins.Page;
import com.phone.core.base.controller.BaseController;
import com.phone.core.support.HttpKit;
import com.phone.core.support.PageKit;
import com.phone.rest.common.SimpleObject;
import com.phone.rest.common.persistence.model.User;
import org.springframework.http.HttpRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import sun.net.www.http.HttpClient;

import javax.xml.ws.Response;
import java.util.HashMap;
import java.util.Map;

/**
 * 常规控制器
 *
 * @author zengzr
 * @date 2017-08-23 16:02
 */
@Controller
@RequestMapping("/hello")
public class ExampleController extends BaseController {

    @RequestMapping("")
    public ResponseEntity hello(@RequestParam String user) {
        System.out.println(user);
        Page<User> page= (Page<User>) new PageKit().defaultPage();
        return ResponseEntity.ok("请求成功!");
    }

}
